Masteriyo\RestApi\Controllers\Version1\QuizesController C

Total Complexity 108
Dependencies 11
Dependents 2
Total lines 1,342
Lines of code 837
Logical lines of code 255
Comment lines 358
Methods 25
Properties 6

Methods 25

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
B
37 23 65
start_quiz_permissions_check()
A
44 8 50
get_item_schema()
A
32 1 151
prepare_objects_query()
A
44 8 45
get_attempt()
S
49 7 30
grade_quiz()
S
46 6 39
is_quiz_started()
S
47 6 37
register_routes()
S
36 1 109
create_item_permissions_check()
S
54 6 21
get_quiz_data()
S
47 5 31
get_attempts()
S
52 5 24
check_answers()
S
51 4 26
get_question_object()
S
56 4 17
get_object()
S
57 4 16
is_quiz_attempt_limit_reached()
S
58 4 14
check_answers_permission_check()
S
55 3 20
get_collection_params()
S
46 1 43
save_quiz_attempts_in_session()
S
55 2 19
save_quiz_attempts_in_db()
S
56 2 18
get_quiz_attempt_data()
S
55 1 19
prepare_quiz_attempts_for_response()
S
56 1 18
prepare_object_for_response()
S
63 2 9
start_quiz()
S
67 2 8
prepare_links()
S
72 1 5
__construct()
S
81 1 3